
package com.hlkj.pay.infrastructure.mapper.ad;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.pay.infrastructure.model.ad.AdInfoDO;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hlkj.framework.mybatis.core.mapper.BaseMapperX;
import com.hlkj.pay.infrastructure.model.ad.AdStatisticsDO;
import org.apache.ibatis.annotations.Param;

/**
 * @author HlpayTeam
 * @date 2024/10/23 9:06
 */
@Mapper
public interface AdStatisticsMapper extends BaseMapperX<AdStatisticsDO> {

    /**
     *
     * @param mpPage
     * @param queryWrapper
     */
    IPage<AdStatisticsDO> selectStatisticsPage(IPage<AdStatisticsDO> mpPage, @Param("ew") QueryWrapper<AdStatisticsDO> queryWrapper);

    /**
     *
     * @param adStatisticsDO
     */
    int updateAdStatistics(@Param("adStatistics") AdStatisticsDO adStatisticsDO);

    /**
     *
     * @param adInfoDO
     */
    void updateAdTotalStatistics(@Param("adInfo") AdInfoDO adInfoDO);
}
